﻿<!--{inc(header.view.html)}-->

<div class="content" id="content">
	<div class="top-menu-box">
    	<div class="z">
            <span class="z-f"><a href="#">系统维护</a>&nbsp;&gt;</span>
            <span class="z-f"><a href="#">语言包修改</a></span>
            <div class="z-f-r"><span class="user-t">当前语言为：</span><span class="user-info"><?php echo $GLOBALS['langdata'][$GLOBALS['langtype']] ;?></span><!-- <a href="#">退出</a> --></div>
        </div>
        <div class="top-menu">
        	<ul>
                <li><a href="index.php?app=lang&act=index"  target="mainframe">语言包管理</a></li>		
            	<li class="current"><a href="#">语言包修改</a></li>
			
				
				
            </ul>
            <div class="clear"></div>
        </div>
    </div>
    
    <div class="main">

<style type="text/css">
.search_box {
padding:10px;
vertical-align:middle;
}
.search_box .l {
float:left;
vertical-align:middle;
}
.search_box .r {
float:right;
}
</style>
                                   
                                   
                                   
<form  method="post" action="?app=lang&act=addvar" >
<div class="search_box">
<div class="l"><img  src="{$web_view_dir}style/images/it_nav.gif" align="middle">
<span class="bold">增加变量:</span>&nbsp;&nbsp;&nbsp;变量名<input type="text" title="变量名" value="" name="var">&nbsp;&nbsp;&nbsp;变量值<input type="text" title="变量值" value="" name="val"> &nbsp;&nbsp;&nbsp;<input name="file" type="hidden" value="{$v}" /><input type="submit" value="提交" class="buton">

</div>

<div class="r">
<a href="?app=lang&act=slist&v={$up_path}"  target="mainframe">返回上一目录</a>
</div>

</div>
</form>

<div class="clear"></div>


 <script language="javascript" type="text/javascript">
 
 function resize_textarea(obj,type) {
	if(type == 'plus'){
		var newheight = parseInt(document.getElementById(obj).style.height, 10) + 50;
		document.getElementById(obj).style.height = newheight + 'px';
	}else{
		var newheight = parseInt(document.getElementById(obj).style.height, 10) - 50;
		if(newheight > 0) {
			document.getElementById(obj).style.height = newheight + 'px';
		}
	}
}

 
 </script>  	
	
	
	
    <table  class="data" >
        <thead>
					

	<th>变量名</th>
	
	<th>变量值</th>

	<th>操作</th>
	
			
        </thead>
	    <tbody>
		
		
<!--{foreach($lang_db as $_key => $_value )}-->
<tr  >
	<td  align="center">
	{$_key}

	</td>
	
	
	<td>
<form  name="form{$_key}" method="post" action="?app=lang&act=editvar" >    
    
<textarea style="width: 350px; height: 30px;"  name="v" id="v_{$_key}">{$_value}</textarea>
<input type="submit" value="点击修改" class="buton">
<br>
	<a onClick="resize_textarea('v_{$_key}','plus');" href="javascript:void(0);">[+]</a> <a onClick="resize_textarea('v_{$_key}','sub');" href="javascript:void(0);">[-]</a>    
    
    
    <!--onchange="ato_url('index.php?app=lang&act=editvar&var={$_key}&f={$v}',this);"-->
 <input type="hidden" name="var" value="{$_key}"  />
 <input type="hidden" name="f" value="{$v}"  /> 

</form>
	</td>

   	

	<td>
	                  <a href="?app=lang&act=delvar&var={$_key}&f={$v}" onClick="return confirm('确认删除此项？此操作无法恢复！');">删除</a>
	                                           </div>
                                               
	                                       
	</td>
</tr>

 <!--{/foreach}--> 	
		
		
		
	    </tbody>
    </table>
	

	
        
        <div class="notic"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span></div>
    </div>
</div>
<!--{inc(footer.view.html)}-->